package com.engineering.elink.recruitdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.engineering.elink.domain.recruit.JobFunctions;

public interface JobFunctionsMapper {
	int deleteByPrimaryKey(Integer jfId);

	int insert(JobFunctions record);

	int insertSelective(JobFunctions record);

	JobFunctions selectByPrimaryKey(Integer jfId);

	int updateByPrimaryKeySelective(JobFunctions record);

	int updateByPrimaryKey(JobFunctions record);

	int insertBatch(List<JobFunctions> jfList);
	
	@Select(" select jf_id as jfId,job_id as jobId,fdc_id as fdcId from job_functions where job_id=#{jobId} and fdc_id=#{fdcId} ")
	JobFunctions selectInfoBy(@Param("jobId")String jobId,@Param("fdcId")Integer fdcId);

	int deleteBatch(@Param("jobId")String jobId,@Param("fdcIds")String[] fdcIds);
}